/**
 * Created by WangCheng on 2020/9/24.
 */

/*背景框*/

.mask-layer * {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.mask-layer {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 202020;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.mask-layer .mask-layer-close {
  width: 48px;
  height: 48px;
  border-radius: 100%;
  position: absolute;
  top: 20px;
  left: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: red; /* 可选：设置背景色 */
  cursor: pointer;
  font-size: 24px; /* 控制图标大小 */
  color: white; /* 控制图标颜色 */
}

.mask-layer .mask-layer-close::before {
  content: "\e646"; /* Themify Icons 代码，代表上箭头 */
  font-family: "themify";
}

.mask-layer-black {
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.75;
  position: absolute;
  top: 0;
  left: 0;
}

.mask-layer-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.mask-layer-container .img-up {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  position: absolute;
  left: 45%;
  top: 32px;
  transform: translate(0, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: white; /* 可选：设置背景色 */
  cursor: pointer;
  font-size: 36px; /* 控制图标大小 */
  color: black; /* 控制图标颜色 */
}

.mask-layer-container .img-up::before {
  content: "\e627"; /* Themify Icons 代码，代表上箭头 */
  font-family: "themify";
}

.mask-layer-container .img-down {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  position: absolute;
  left: 45%;
  bottom: 2px;
  transform: translate(0, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: white; /* 可选：设置背景色 */
  cursor: pointer;
  font-size: 36px; /* 控制图标大小 */
  color: black; /* 控制图标颜色 */
}

.mask-layer-container .img-down::before {
  content: "\e62a"; /* Themify Icons 代码，代表上箭头 */
  font-family: "themify";
}

.mask-layer-container .img-pre {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  position: absolute;
  left: 12px;
  top: 45%;
  transform: translate(0, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: white; /* 可选：设置背景色 */
  cursor: pointer;
  font-size: 36px; /* 控制图标大小 */
  color: black; /* 控制图标颜色 */
}

.mask-layer-container .img-pre::before {
  content: "\e629"; /* Themify Icons 代码，代表上箭头 */
  font-family: "themify";
}

.mask-layer-container .img-next {
  width: 60px;
  height: 60px;
  position: absolute;
  border-radius: 100%;
  cursor: pointer;
  right: 12px;
  top: 45%;
  transform: translate(0, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: white; /* 可选：设置背景色 */
  cursor: pointer;
  font-size: 36px; /* 控制图标大小 */
  color: black; /* 控制图标颜色 */
}

.mask-layer-container .img-next::before {
  content: "\e628"; /* Themify Icons 代码，代表上箭头 */
  font-family: "themify";
}

.mask-layer-container .mask-layer-imgbox {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.mask-layer-container .mask-layer-imgbox.has-small {
  height: calc(100% - 105px);
}

.mask-layer-imgbox .layer-img-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.layer-img-box > p {
  position: absolute;
  transform-origin: center;
  -webkit-transform-origin: center;
  -moz-transform-origin: center;
  -ms-transform-origin: center;
  -o-transform-origin: center;
  width: 100%;
  height: 100%;
  -webkit-margin-before: 0;
  -webkit-margin-after: 0;
  cursor: move;
  left: 0;
  top: 0;
}

.mask-layer-imgbox .layer-img-box img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  -webkit-transform: translate(-50%, -50%) scale(1);
  -moz-transform: translate(-50%, -50%) scale(1);
  -ms-transform: translate(-50%, -50%) scale(1);
  -o-transform: translate(-50%, -50%) scale(1);
}

.mask-layer-imgbox .layer-img-box img:hover {
  cursor: move;
}

.zoomImg-hide-box {
  display: none !important;
}

/*右键菜单*/

.mask-layer .contextmenu {
  list-style: none;
  display: none;
  position: absolute;
  width: 180px;
  background: #ffffff;
  border-radius: 5px;
  z-index: 99;
  border: 1px solid #333;
}

.mask-layer .contextmenu li {
  transition: ease 0.3s;
}

.mask-layer .contextmenu li:hover {
  background: #333333;
}

.mask-layer .contextmenu li > a {
  display: block;
  padding: 10px 10px 10px 35px;
  color: #000000;
  text-decoration: none;
  transition: ease 0.3s;
}

.mask-layer .contextmenu li > a.clockwise {
  background: url(../img/right_rotate.png) no-repeat left 5px center;
  background-size: 24px 24px;
}

.contextmenu li > a.clockwise:hover {
  background: url(../img/right_rotate_h.png) no-repeat left 5px center;
  background-size: 24px 24px;
}

.mask-layer .contextmenu li > a.counterClockwise {
  background: url(../img/left_rotate.png) no-repeat left 5px center;
  background-size: 24px 24px;
}

.contextmenu li > a.counterClockwise:hover {
  background: url(../img/left_rotate_h.png) no-repeat left 5px center;
  background-size: 24px 24px;
}

.mask-layer .contextmenu li > a.downimg {
  background: url(../img/down.png) no-repeat left 5px center;
  background-size: 24px 24px;
}

.contextmenu li > a.downimg:hover {
  background: url(../img/down_h.png) no-repeat left 5px center;
  background-size: 24px 24px;
}

.mask-layer .contextmenu li:hover > a {
  color: #ffffff;
}

.mask-layer .contextmenu .menu-parend:hover .menu-child {
  display: block;
}
